package com.search.entity;

import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.NotBlank;

/**
 *
 * 日期：2019年4月27日上午9:01:02
 */
public class Search {
	
	@Min(value = 0, message = "检索ID不能为负数")
	private Integer channelid;// 检索ID
	private String type;// 检索类型
	@NotBlank(message = "检索词不能为空")
	private String searchword;// 检索词汇
	private String field;// 检索字段
	private String time;// 检索时间
	private String starttime;// 开始时间
	private String endtime;// 结束时间
	private String groupid;// 分类统计id

	public Search() {
		super();
	}

	public Integer getChannelid() {
		return channelid;
	}

	public void setChannelid(Integer channelid) {
		this.channelid = channelid;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSearchword() {
		return searchword;
	}

	public void setSearchword(String searchword) {
		this.searchword = searchword;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getStarttime() {
		return starttime;
	}

	public void setStarttime(String starttime) {
		this.starttime = starttime;
	}

	public String getEndtime() {
		return endtime;
	}

	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}

	public String getGroupid() {
		return groupid;
	}

	public void setGroupid(String groupid) {
		this.groupid = groupid;
	}

	@Override
	public String toString() {
		return "Search [channelid=" + channelid + ", searchword=" + searchword + ", field=" + field + ", time=" + time
				+ ", starttime=" + starttime + ", endtime=" + endtime + ", groupid=" + groupid + "]";
	}

}
